/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                    *
*        ***************************************************         *
*        *©2021-2031 LINUO Corporation All rights reserved *         *
*        ***************************************************         *
*                                                                    *
* FileName    : vi.h                                                 *
*                                                                    *
* Author      : linus                                                *
*                                                                    *
* Email       : luoyaojun@sina.com                                   *
*                                                                    *
* Date        : 2024-3-27                                            *
*                                                                    *
* Description :                                                      *
*                                                                    *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */



#ifndef __ROCKCHIP_VI_H
#define __ROCKCHIP_VI_H

#include "h_vi.h"

#include "rk_debug.h"
#include "rk_mpi_vi.h"
#include "h_pthread.h"

struct rockchip_vi_priv{
	char stChnPthreadName[PTHREAD_MAX_NAME];

	HT_S32 dev;

	HT_S32 chn;

	//	user callback 
	ht_vi_get_frame_cb user_cb;
	
	void *user;

	HT_S32 wait_time;

};

struct rockchip_vi{
	
	struct rockchip_vi_priv *priv[VI_MAX_DEV_NUM*VI_MAX_CHN_NUM];
	
    struct ht_vi m_vi;

	struct ht_pthread pthread;
	
};

#endif
